import java.io.File;

public class Demo4 {
    public static void main(String[] args) {
        File dir = new File("./test1Dir");
        //创建一级目录
        dir.mkdir();
        //dir.mkdirs();
        System.out.println(dir.isDirectory());
    }
}
